package com.gnerv.business.platform.entity;

import java.io.File;
import java.io.Serializable;

/**
 * @description: 文件存储类
 * @author: Gnerv LiGen
 * @date: 2018-07-03
 **/
public class Storage implements Serializable {

    private static final long serialVersionUID = 1L;

    private String uuid;

    private String md5;

    private String name;

    private String path;

    private long size;

    private String suffix;

    private String storageSpace = "local";

    private File file;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }


    public String getStorageSpace() {
        return storageSpace;
    }

    public void setStorageSpace(String storageSpace) {
        this.storageSpace = storageSpace;
    }

    @Override
    public String toString() {
        return "Storage{" +
                "uuid='" + uuid + '\'' +
                ", md5='" + md5 + '\'' +
                ", name='" + name + '\'' +
                ", path='" + path + '\'' +
                ", size='" + size + '\'' +
                ", suffix='" + suffix + '\'' +
                ", storageSpace='" + storageSpace + '\'' +
                '}';
    }
}
